﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using SharpArch.Domain.DomainModel;

namespace ADIGRE.Domain.RoutineTable
{
    public class BalancoMensal : Entity
    {
        [Display(Name = "Responsável"), Required(AllowEmptyStrings = false)]
        public virtual Usuario Responsavel { get; set; }
        [Display(Name = "Cadastro"), Required(AllowEmptyStrings = false), DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}")]
        public virtual DateTime? DtCadastro { get; set; }
        [Display(Name = "Período"), Required(AllowEmptyStrings = false), DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}")]
        public virtual DateTime? DtPeriodo { get; set; }
        [Display(Name = "Entrada"), Required(AllowEmptyStrings = false), DisplayFormat(DataFormatString = "{0:N2}")]
        public virtual decimal VlEntrada { get; set; }
        [Display(Name = "Saída"), Required(AllowEmptyStrings = false), DisplayFormat(DataFormatString = "{0:N2}")]
        public virtual decimal VlSaida { get; set; }
        [Display(Name = "Saldo"), Required(AllowEmptyStrings = false), DisplayFormat(DataFormatString = "{0:N2}")]
        public virtual decimal VLSaldo { get { return VlEntrada - VlSaida; } }
    }
}
